<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>待办事项</title>
    <style>
        body {
            font-family: "Microsoft YaHei", sans-serif;
            background-color: #f8f9fa;
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
        }
        .container {
            width: 600px;
        }
        .header {
            text-align: center;
            margin-bottom: 20px;
        }
        .header h1 {
            font-size: 2.5em;
            color: #4154f1;
            margin: 0;
        }
        .header p {
            color: #6c757d;
            margin: 10px 0 0 0;
        }
        .card {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            padding: 20px;
            margin-bottom: 15px;
        }
        .add-task {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        .add-task input {
            flex: 1;
            padding: 12px;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            font-size: 1em;
        }
        .add-task button {
            background-color: #4154f1;
            color: white;
            border: none;
            padding: 0 20px;
            border-radius: 4px;
            cursor: pointer;
        }
        /* 筛选按钮样式 - 灰色底色 */
        .filters {
            margin-bottom: 15px;
            display: flex;
            gap: 10px;
        }
        .filters button {
            background-color: #f1f3f5; /* 灰色底色 */
            border: 1px solid #dee2e6;
            border-radius: 20px;
            padding: 5px 15px;
            cursor: pointer;
            font-size: 0.9em;
            color: #495057;
            flex-shrink: 0;
        }
        .filters button.active {
            background-color: #e6f7ff; /* 激活状态浅色背景 */
            border-color: #4154f1;
            color: #4154f1;
        }
        .task {
            display: flex;
            align-items: center;
            padding: 12px;
            margin-bottom: 8px;
            border-radius: 4px;
            background-color: #f8f9fa; /* 任务项灰色底色 */
        }
        .task.completed .task-text {
            color: #adb5bd;
            text-decoration: line-through;
        }
        .task input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: #4154f1;
            cursor: pointer;
        }
        .task-text {
            flex: 1;
            margin: 0 15px;
            color: #343a40;
        }
        .delete-btn {
            color: #adb5bd;
            cursor: pointer;
            font-size: 1.2em;
        }
        .stats {
            text-align: center;
            color: #6c757d;
            font-size: 0.9em;
            padding: 15px 0;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>待办事项</h1>
            <p>简单高效地管理你的任务</p>
        </div>
        <div class="card">
            <div class="add-task">
                <input type="text" placeholder="添加新的待办事项...">
                <button>+ 添加</button>
            </div>
            <div class="filters">
                <button class="active">全部</button>
                <button>未完成</button>
                <button>已完成</button>
            </div>
            <div class="task-list">
                <div class="task">
                    <input type="checkbox">
                    <div class="task-text">8点早餐</div>
                    <div class="delete-btn">🗑️</div>
                </div>
                <div class="task completed">
                    <input type="checkbox" checked>
                    <div class="task-text">7点早读</div>
                    <div class="delete-btn">🗑️</div>
                </div>
            </div>
        </div>
        <div class="card">
            <div class="stats">
                1 个未完成，2 个总计
            </div>
        </div>
    </div>
</body>
</html>